package com.wechat.dao;

import com.wechat.entity.UserRechargeRecord;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface UserRechargeRecordDao {
    /**
     * 
     */
    int deleteById(Long id);

    /**
     * 
     */
    int save(UserRechargeRecord record);

    /**
     * 
     */
    UserRechargeRecord findById(Long id);

    /**
     * 
     */
    int update(UserRechargeRecord record);


    /**
     * 获取充值记录列表
     * @param userId
     * @param tradeStatus
     * @param dateTradedBegin
     * @param dateTradedEnd
     * @param createTimeBegin
     * @param createTimeEnd
     * @return
     */
    List<UserRechargeRecord> list(@Param("userId") Integer userId,
                                            @Param("tradeStatus") Integer tradeStatus,
                                            @Param("dateTradedBegin") Date dateTradedBegin,
                                            @Param("dateTradedEnd") Date dateTradedEnd,
                                            @Param("createTimeBegin") Date createTimeBegin,
                                            @Param("createTimeEnd") Date createTimeEnd);
}